import { Injectable } from '@nestjs/common';
import { NewService } from 'src/module/grocery/service/new.service';

@Injectable()
export class HotService {
  constructor(private readonly hotService: NewService) {}

  async findOne(id: number) {
    const res = await this.hotService.findOne(id);
    return res;
  }

  async findAll(pageDto) {
    const params = {
      pageDto,
      queryDto: {
        id: null,
        title: '',
        desc: '',
        categoryId: null,
        goodsId: null,
      },
    };
    const res = await this.hotService.findAll(params);
    return res;
  }
}
